﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media;
using System.Windows;

namespace AlgorithmBox.FlowCharts
{
	public class ConnectionLine : IThreeStateDrawing
	{
		public LineGeometry Line = new LineGeometry();

		public FlowChartElement Next;

		#region IThreeStateDrawing Members

		bool? isFinish = null;
		public bool IsFinish { get { return (bool)isFinish; } }
		
		public void NextState()
		{
			if (isFinish == null)
				isFinish = false;
			else if (!(bool)IsFinish)
				isFinish = true;
		}

		#endregion
	}
}
